
const promise1 = new Promise((resolve) => {
  resolve(1)
}).catch(err => Promise.resolve('promise1接口失败'))
const promise2 = new Promise((resolve, reject) => {
  reject(2)
}).catch(err => Promise.resolve('promise2接口失败'))

Promise.all([promise1, promise2]).then((res) => {
  console.log(res)
}).catch(err => {
  console.log(err, 'promise all执行失败');
})